/// <reference path="../_all.ts" />

module Application.Resources {
    export interface IMemberClass extends ng.resource.IResourceClass {
        saveCollection(params: any, data: any, success?: Function, error?: Function): IMember[];
    }

    export interface IMemberRightsClass extends ng.resource.IResourceClass {
    }

    export interface IMember extends ng.resource.IResource {
        member_id: number;
        member_name: string;
        member_rank: string;
        membership_id: number;
        game_id: string;
        last_datetime: Date;
        rights: IMemberRights[];
    }

    export interface IMemberRights extends ng.resource.IResource {
        memberrights_id: number;
        member_id: number;
        server_id: number;
        rights_list: string;
        last_datetime: Date;
    }

}